<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
%>
<script src="<%=basePath %>/js/adapt.js" type="text/javascript"></script>

<div style="padding-bottom: 1rem;"></div>
<footer class="bottom-bar bgfff">
	<ul>
		<li>
			<a href="<%=basePath %>/index">
				<span class="icon icon-home"></span>
				首页
			</a>
		</li>
		<li>
			<a href="<%=basePath %>/course">
				<span class="icon icon-study"></span>
				学习
			</a>
		</li>
		<li>
			<a href="<%=basePath %>/user">
				<span class="icon icon-my"></span>
				我的
			</a>
		</li>
	</ul>
</footer>

<script type="text/javascript">
	$(function() {
		$(".bottom-bar li a").each(function(index, item) {
			if(window.location.href.indexOf(item.href) != -1){
				$(item).find("span").addClass("on").siblings().removeClass("on");
			}
		});
	})
</script>